package com.boolib.http.core.util;

import java.util.Objects;

public class AssertUtil {

    public static  void equalsOrThrow(Object a, Object b,RuntimeException ex){
        if(!Objects.equals(a,b)){
            throw  ex;
        }
    }

    public static  void trueOrThrow(boolean a,RuntimeException ex){
        if(!a){
            throw  ex;
        }
    }

}
